package io.renren.modules.groupunnormal.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.groupunnormal.dao.GroupunnormalDao;
import io.renren.modules.groupunnormal.entity.GroupunnormalEntity;
import io.renren.modules.groupunnormal.service.GroupunnormalService;


@Service("groupunnormalService")
public class GroupunnormalServiceImpl extends ServiceImpl<GroupunnormalDao, GroupunnormalEntity> implements GroupunnormalService {

    @Autowired
    GroupunnormalDao groupunnormalDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GroupunnormalEntity> page = this.page(
                new Query<GroupunnormalEntity>().getPage(params),
                new QueryWrapper<GroupunnormalEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<GroupunnormalEntity> getshuju(String groupName, String startTime, String endTime) {
        System.out.println(groupunnormalDao.getshuju(groupName,startTime,endTime));
        return groupunnormalDao.getshuju(groupName,startTime,endTime);
    }

}